﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QLTB_CTK34
{
    public partial class FrmDanhSachDK : Form
    {
        public FrmDanhSachDK()
        {
            InitializeComponent();
        }
        public Type type;
        public DataGridView dgv;
        public IEnumerable<object> ds;
        public List<object> newds;
        List<UCCompare> ds_uc = new List<UCCompare>();
        int height=3,count=1;
        private void btnThemDK_Click(object sender, EventArgs e)
        {
            height=height+50;
            UCCompare uc1 = new UCCompare();
            uc1.xldt = ucCompare1.xldt;
            this.panel1.Controls.Add(uc1);
            uc1.InitColumnName(type, dgv, ds);
            uc1.Location = new System.Drawing.Point(3, height);
            uc1.TenUC.Text = "Điều kiện thứ " + count;
            uc1.Name = "uc"+(count++);
            uc1.Size = new System.Drawing.Size(421, 62);
            uc1.TabIndex = 1;
            ds_uc.Add(uc1);
        }

        private void FrmDanhSachDK_Load(object sender, EventArgs e)
        {
          //  newds = ds;
        }
    }
}
